#include "genenetworkreader.h"

GeneNetworkReader::GeneNetworkReader(QString filename)
{

//    QFile f(filename);

//    if( !f.exists() )
//    {
//        qDebug() << "file not found." << endl;
//        return;
//    }

//    if( ! f.open(QIODevice::ReadOnly))
//    {
//        qDebug() << "file " << filename << " can't be opened." << endl;
//        return;
//    }

//    qDebug() << "file " << filename << " opened." << endl;

//    QTextStream stream(&f);
//    QString line;
//    do {
//         line = stream.readLine();
//         qDebug() << "line =  " << line << endl;
//         QStringList list = line.split(QRegExp("\\s+"), QString::SkipEmptyParts);
//         if( list.size() == 3 )
//            graph.addEdge( list[0], list[1], list[2] );
//     } while (!stream.atEnd() );//line.isNull());

//    //qDebug() << "file = " << line << endl;
}

GeneNetworkReader::~GeneNetworkReader()
{

}


//void GeneNetworkReader::getGraph(Graph& g)
//{

//}
